define(["jquery","bbcare"],function ($,$bb) {
    var servers = {};
    var URL = $bb.baseUrl("followup");

    /*
    * 获取用户信息：
    * */
    servers.getUserInfo = function (params,callback){
        $bb.ajax({
            url: URL + "followup/service/patient/patientInfoPtId",
            data: JSON.stringify({
                "data": {
                    "patientId": params.userId
                }
            }),
            success: function (data) {
                if(data.success){
                    callback(data.data,params);
                }else{
                    $bb.toastShow(data.msg,1500);
                }
            }
        });
    };

    return servers;
});